#!/bin/bash
WD=$(pwd)
PREFIX=srcds/l4d2_versus
ln $WD/$1 ${HOME}/${PREFIX}/left4dead2/left4dead2/addons/sourcemod/scripting/
cd ${HOME}/${PREFIX}/left4dead2/left4dead2/addons/sourcemod/scripting/
./compile.sh $1
ret=$?
rm ${HOME}/${PREFIX}/left4dead2/left4dead2/addons/sourcemod/scripting/$1

if test $ret -eq 0
then
    exit 0;
else
    exit -1;
fi
